import React, { Component } from 'react';
/* 
    react 高阶组件实现第二种方式
    反向继承
*/
class Tesing extends Component {
    render() {
        return (
            <div>
                <h1>Tesing 组件</h1>
            </div>
        );
    }
}
function HigherOrderComponent(Cmp){
    // Cmp=>App
    return class Bring extends Cmp{
        render(){
            console.log(super.render())
            return super.render()
        }
    }
}

export default HigherOrderComponent(Tesing);